package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.User2DepartmentDao;
import com.suke.czx.modules.examstack.exam.entity.User2DepartmentEntity;
import com.suke.czx.modules.examstack.exam.service.User2DepartmentService;



@Service("user2DepartmentService")
public class User2DepartmentServiceImpl implements User2DepartmentService {
	@Autowired
	private User2DepartmentDao user2DepartmentDao;
	
	@Override
	public User2DepartmentEntity queryObject(Integer userId){
		return user2DepartmentDao.queryObject(userId);
	}
	
	@Override
	public List<User2DepartmentEntity> queryList(Map<String, Object> map){
		return user2DepartmentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return user2DepartmentDao.queryTotal(map);
	}
	
	@Override
	public void save(User2DepartmentEntity user2Department){
		user2DepartmentDao.save(user2Department);
	}
	
	@Override
	public void update(User2DepartmentEntity user2Department){
		user2DepartmentDao.update(user2Department);
	}
	
	@Override
	public void delete(Integer userId){
		user2DepartmentDao.delete(userId);
	}
	
	@Override
	public void deleteBatch(Integer[] userIds){
		user2DepartmentDao.deleteBatch(userIds);
	}
	
}
